// $Id: RepositoryObject.java 80 2012-01-04 22:05:33Z huijzer@gmail.com $
package lime.model;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.ToStringBuilder;

public class RepositoryObject {

	private String objectId;
	private String objectName;

	public RepositoryObject(String objectId) {
		this.objectId = objectId;
	}

	public RepositoryObject(String objectId, String objectName) {
		this.objectId = objectId;
		this.objectName = objectName;
	}
	
	public String getObjectId() {
		return objectId;
	}
	
	public String getObjectName() {
		return StringUtils.defaultString(objectName);
	}

	public void setObjectName(String objectName) {
		this.objectName = objectName;
	}
	
	@Override
	public String toString() {
		return new ToStringBuilder(this)
			.append("objectId", objectId)
			.append("objectName", objectName)
			.toString();
	}
	
}
